package com.moon.icoresso.pojo.constants;

/**
 * @ClassName Constants4Oauth
 * @Description
 * @Author menbbo
 * @Date 2021/2/12 18:24
 * @Version V1.0
 **/

public interface Constants4Oauth {
    String CLIENT_ID_PREFIX = "OAUTH:CLIENT_ID:";
    String USER_AGENT =  "User-Agent";
    String USER_INFO_REDIS_PREFIX = "OAUTH:USERINFO:";
    String OAUTH_CODE_PREFIX = "OC-";
    String OAUTH_ACCESS_TOKEN_PREFIX = "AC-";
    String OAUTH_REFERSH_TOKEN_PREFIX = "RF-";
    String OAUTH_CODE_REDIS_KEY_PREFIX = "OAUTH:CODE:";
    long MAX_EXPIRE_TIME = 86400;
    Integer TOKEN_MAX_EXPIRE_TIME =86400;
    String OAUTH_CODE_GRANT_TYPE = "authorization_code";
    String OAUTH_PASSWORD_GRANT_TYPE = "password";
    String OAUTH_CLIENT_GRANT_TYPE = "client";
    String OAUTH_REFRESH_GRANT_TYPE = "refresh";
    String HEADER_AUTHORIZATION = "authorization";
    String PARAM_ACCESSTOKEN = "accessToken";
    String PREFIX_UPPER_USERINFO = "Bearer";
    String PREFIX_LOWER_USERINFO = "bearer";
    String PREFIX_UPPER_CLIENT="Basic";
    String PREFIX_LOWER_CLIENT="basic";
    String ACCESS_TOKEN_TYPE = "access_token";
    String REFRESH_TOKEN_TYPE = "refresh_token";
}